/**
 * 基础框架 底部内容
 * @author taiping
 */

import React from 'react';
import { Layout } from 'antd';
import { BasicProps } from 'antd/es/layout/layout';

const { Footer } = Layout;

export interface FooterProps extends BasicProps {
  // 内容配置
  footerText?: string | React.ReactNode;
}
export const WitFooter = (props: FooterProps) => {
  const { footerText } = props;

  return (
    <Footer {...props} style={{ textAlign: 'center' }}>
      {footerText ?? 'Wit-Admin ©2023 Created by taiping'}
    </Footer>
  );
};
